<?php
class Sugestao {

	public $id, $value;
	
	public function Sugestao($id, $value, $tom) {
		$this->id = $id;
		$this->value = $value;
		$this->tom = $tom;
	}
	
	public function get_id() {
		return $this->id;
	}
	
	public function get_value() {
		return $this->value;
	}
	
	public function get_tom() {
		return $this->tom;
	}

}

class Sugestoes {
	
	private $array;
	
	public function Sugestoes() {
		$this->array = array();
	}
	
	public function adicionar_sugestao($id, $value, $tom = null) {
		$sugestao = new Sugestao($id, $value, $tom);
		$this->array[] = $sugestao;
	}
	
	public function get_json() {
		return json_encode($this->array);
	}
	
}
?>